package com.wmeimob.fastboot.jiubei.entity;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.*;


/**
 * ShopGoodsClassify.java
 * http://www.wmeimob.com
 * Copyright © 2018 wmeimob All Rights Reserved,version 1.0
 *
 * @author：wjt Wed Aug 26 21:50:57 CST 2020 Created
 */

@Table(name = "`shop_goods_classify`")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ShopGoodsClassify implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 父类ID
     */
    @Column(name = "pid")
    private Integer pid;
    /**
     * 分类名
     */
    @Column(name = "name")
    private String name;
    /**
     * 图片
     */
    @Column(name = "pic")
    private String pic;
    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;
    /**
     * 是否删除;1:是,0:否.
     */
    @Column(name = "is_del")
    private Boolean del;
    /**
     * 创建时间
     */
    @Column(name = "gmt_create")
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @Column(name = "gmt_modified")
    private Date gmtModified;
    @Transient
    private List<ShopGoodsClassify> children;
}